package com.yifan.spring;

import com.yifan.spring.service.OrderService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @Author YIFan
 * @Date 2021/4/23 13:07
 * @Version 1.0
 */
@ComponentScan("com.yifan.spring")
@EnableAspectJAutoProxy
public class AppConfig {

    @Bean
    public OrderService orderService1(){
        return new OrderService();
    }

    @Bean
    public OrderService orderService2(){
        return new OrderService();
    }

}
